﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KNet.Data.Entity;
using Newtonsoft.Json;

namespace CNKI.TPI.Web.Search.Model
{
    public class CLS : BaseModel, IView
    {
        public string Templatecode { set; get; }
        public string Name { set; get; }
        public string Expression { set; get; }
        public int AHeadMatch { set; get; }
        public int RefClassFlag { set; get; }
        public int SortNumber { set; get; }
        public int SysID { set; get; }

        public CLS()
        { 
        
        }

        [JsonConstructor]
        public CLS(string templatecode, string name, string expression, int aheadmatch, int refClassFlag, int sortNumber, int sysID)
        {
            this.Templatecode = templatecode;
            this.Name = name;
            this.Expression = expression;
            this.AHeadMatch = aheadmatch;
            this.RefClassFlag = refClassFlag;
            this.SortNumber = sortNumber;
            this.SysID = sysID;
        }
    }
}
